/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial')

GBIF.GeoSpatial.LayerTypes = function(config){
	
	var store = new Ext.data.ArrayStore({
			fields: [
					'typeId'
				,	'displayText'
			]
		,	data: [['wfs', 'WFS'], ['wms', 'WMS'],['georss', 'GeoRss'],['kml', 'KML'],['gbif.clb', 'GBIF Checklist Bank'],['birdlife', 'BirdLife']]
	});
   	

	Ext.apply(this, config, {	
			bodyStyle:"padding:15px"	
		,	border:false
		,	items:[{
					xtype: "tbtext"
				,	html:'<div style="font-family:Arial,tahoma,Helvetica,sans-serif; font-size:12px "">' + this.txtDirectionValue + '</div>'
				,	style:'padding-bottom:25px;'
			},{
					xtype:'combo'
				,	fieldLabel:this.txtSelcetType
				,	typeAhead: false
				,	triggerAction: 'all'
				,	editable: false
				,	mode: 'local'
				,	scope:this
				,	ref:'layerType'
				,	emptyText: this.txtEmpty
				,	store:store
				,	valueField: 'typeId'
				,	displayField: 'displayText'
			}]	
	});
	
	GBIF.GeoSpatial.LayerTypes.superclass.constructor.call(this, config);
};

Ext.extend(GBIF.GeoSpatial.LayerTypes,Ext.FormPanel, {});